import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import qs from 'qs';
import axios from "axios";
import mavonEditor from 'mavon-editor';
import 'mavon-editor/dist/css/index.css';
import hljs from 'highlight.js';
import {quillEditor} from "vue-quill-editor/dist/ssr";
import 'vue-quill-editor/dist/quill.bubble.css'
import 'vue-quill-editor/dist/quill.core.css'
import 'vue-quill-editor/dist/quill.snow.css'


Vue.use(mavonEditor)
Vue.prototype.axios = axios;
Vue.use(quillEditor)
Vue.prototype.qs = qs
Vue.use(ElementUI);
Vue.config.productionTip = false;

new Vue({
  'el': '#main',
  data() {
    return { value: '' }
  }
})
Vue.directive('highlight', function (el) {
  let blocks = el.querySelectorAll('pre')
  blocks.forEach((block) => {
    hljs.highlightBlock(block)
  })
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
